﻿config.eventcfg = {		
	dataImportParam: function() {
		var pg = JxUtil.getParentGrid(this.grid);
		var records = pg.getSelectionModel().getSelections();
		if (!JxUtil.selectone(records)) return;
		
        var fkey = records[0].get('wf_order__order_id');
		var funId = records[0].get('wf_order__fun_id');
		
		var options = {
			whereSql: 'process_id in (select process_id from wf_process where process_state = ? and fun_id = ?) and node_id not in (select node_id from wf_order_node where order_id = ?)',
			whereValue: '2;'+funId+';'+fkey,
			whereType: 'string;string;string'
		};
        
		return options;
	}
};
